package com.hilon.segment.jpa.service.impl;

import com.hilon.segment.jpa.entity.WorkShop;
import com.hilon.segment.jpa.repository.WorkShopRepository;
import com.hilon.segment.jpa.service.WorkShopService;
import com.hilon.base.service.EntityHandle;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Slf4j
@Transactional(rollbackFor = Exception.class)
@Service
public class WorkShopServiceImpl extends EntityHandle<WorkShop> implements WorkShopService {
    private final WorkShopRepository workShopRepository;

    public WorkShopServiceImpl(WorkShopRepository workShopRepository) {
        this.workShopRepository = workShopRepository;
        super.buildCurRepository(workShopRepository);
    }
}
